{ext->get_field_value assign="value" name=$el.name parent=$data.page.id}
<input type="hidden" name="{$el.name}" value="{if !$value}0{else}{$value}{/if}">
<input type="hidden" name="x_{$el.name}" value="{if !$value}0{else}{$value}{/if}">

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="1" bgcolor="#DBE1E5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>

<script type="text/javascript" language="javascript1.4">
<!--
function InsertFromGallery(status, slastKey){ldelim}
	if (status == 1){ldelim}
		document.getElementById('div_'+slastKey).innerHTML = "{t t='Įdetas iš galeryjos'}. <a href='#' onClick='InsertFromGallery(2, \""+slastKey+"\");'>{t t='Nuimti'}</a>";
	{rdelim} else {ldelim}
		document.forms['form{$smarty.get.id}'].x_{$el.name}.value = 0;
		document.getElementById('div_'+slastKey).innerHTML = '<input name="'+slastKey+'" accept="image/gif" type="file" class="defaultInputText">';		
	{rdelim}
{rdelim}
//-->
</script>

<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td class="defaultFormLabel" width="170" height="25"><nobr>{t t=$el.name}:</td>
		<td>
		<!-- *  -->
		{if $value}
		{ext->get_binary_data id=$value assign='image_data'}				
		<table width="100%" cellpadding="0" cellspacing="0" style="margin:10px 10px 10px 0px">
			<tr>
				<td width="1" style="border:2px solid #AABDC1;">
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="{if $image_data.info.width<500}{$image_data.info.width}{else}500{/if}" height="{if $image_data.info.height<300}{$image_data.info.height}{else}300{/if}">
                  <param name="movie" value="get.php?s.{$value}">
                  <param name="quality" value="high">
                  <embed src="get.php?s.{$value}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="{$image_data.info.width}" height="{$image_data.info.height}"></embed>
			    </object>
				</td>
				<td width="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>	
				<td><input type="button" name="{t t='Ištrinti'}" value="{t t='Ištrinti'}" class="defaultFormButton" onClick="window.location='index.php?admin=1&mod=flash&act=del&image_id={$value}&field_name={$el.name}&parent={$data.page.id}&referer={ext->get_referer}'"></td>	
			</tr>
		</table>
		{else}
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td><div id="div_{$el.name}"><input name="{$el.name}" accept="image/gif" type="file" class="defaultInputText"></div></td>		
				<td width="30"><a href="#" onClick="openCenteredOnOpenerWindow('index.php?admin=1&insflash=1&mode=infield&parent={$data.page.id}&tpl_parent_name={$data.page.name|urlencode}&field={$el.name}','inspic',600,500,'','scrollbars',opener); return false;"><img src="/_tvs_system_core_/design/img/admin/_icon_flash.gif" border="0" align="absmiddle" alt="Insert flash"></a></td>
			</tr>
		</table>
		{/if}
		<!-- /*  -->
		</td>		
	</tr>
</table>